Release 10.1A: OpenEdge Development:
Java Open Clients
Defining the schema for a temp-table parameter mapped to a ProDataGraph
Defining the schema for a Progress 4GL temp-table (
Note: This is a condensed description with reference to the Java OpenAPI. For complete information on defining the schema for a temp-table parameter mapped to aTABLEorTABLE-HANDLE) parameter passed as acom.progress.open4gl.ProDataGraphis a multi-step process.ProDataGraph, see Chapter 5, " Accessing Progress ProDataSets."
![]()
To define the schema for a temp-table parameter passed as a
ProDataGraph:
- Define a
com.progress.open4gl.ProDataGraphMetaDataobject.- Add a single
com.progress.open4gl.ProDataObjectMetaDataobject to theProDataGraphMetaDatathat describes the schema of the temp-table parameter you are passing.- If the parameter is for input or input-output, define a
com.progress.open4gl.ProDataGraphusing theProDataGraphMetaDatato hold the parameter value.- Specify the
ProDataGraphMetaDataobject and anyProDataGraph(for input or input-output) as a ProDataSet parameter to yourParamArrayobject using the appropriate set parameter method. For example:Note: You can also pass a temp-table parameter as a
java.sql.ResultSet. For more information, see the "Defining the schema for a temp-table parameter mapped to a java.sql.ResultSet" section.This process is almost identical to defining the schema to set up a ProDataSet parameter. The two differences are that you:
- Define only one temp-table in the
ProDataGraphMetaDatato represent the temp-table parameter you are passing.- To add a temp-table parameter to a parameter array using the
ProDataGraphMetaData, pass theProDataGraphMetaData(and any input or input-outputProDataGraph) to the appropriatesetTable()orsetTableHandle()method (instead of asetDataset()orsetDatasetHandle()method, as for a ProDataSet parameter).Thus, the
ProDataGraphbecomes a wrapper for the actual temp-table parameter value. With these differences in mind, for more information on the steps to pass a temp-table parameter as aProDataGraph, see the "Defining the schema for a ProDataSet parameter" section.For more information on working with temp-table parameters mapped to a
ProDataGraph, see Chapter 5, " Accessing Progress ProDataSets."
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |